import request from "~/utils/request"
import {Result, UserBO} from "~/api/responseResult";
import {LoginParameter} from "~/api/requestInstance";

export function login(data: LoginParameter): Result<string> {
    return request({
        url: '/login',
        method: 'post',
        params: data
    }) as any as Result<string>
}
export function getUserInfo(): Result<UserBO> {
    return request({
        url: '/getUserInfo',
        method: 'get'
    }) as any as Result<UserBO>
}
